//
//  OneDatBase.h
//  bh
//
//  Created by lanou on 15/12/26.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Picture.h"
#import "FMDatabase.h"


@interface OneDatBase : NSObject

//创建一个对象
@property (nonatomic,strong)FMDatabase *dataBase;

+ (OneDatBase *)shareSqliteManger;

//获取/指定我们的数据库路径
- (NSString *)sqlitePaths:(NSString *)sqlitePaths;
//打开数据库
- (void)openSqliteWithPaths:(NSString *)paths;
//关闭数据库
- (void)closeSqlite;
//创建一个数据库表
- (void)createSqliteTableWithName:(NSString *)name;
//插入一条数据
- (void)insertModel:(Picture *)model;
//删除一条数据
- (void)deleteWWithAuthorID:(NSString *)authorID;

//获取全部数据
- (NSArray *)selectAllModel;  








@end
